import { GET_SHOP_INFO } from '../actionTypes';

const initialState = {
    shopId: "",
    shopInfo: {},
};

const shopReducers = (state = initialState, action) => {
    switch (action.type) {
        case GET_SHOP_INFO:
            return { ...state, shopInfo: action.payload };
        case 'SET_SHOP_ID':
            return { ...state, shopId: action.payload };
        default:
            return state;
    }
};

export default shopReducers;
